package weifei.live.simulation.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.springframework.stereotype.Repository;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("avatar")
@Repository
public class Avatar extends Model<Avatar>
{
    @Getter
    public enum Column
    {
        ID("id"),
        Content("content");

        final String name;

        Column(String name) { this.name = name; }
    }


    @TableId
    private Integer id;
    private String content;

    public Avatar() {}
    public Avatar(int id) { this.id = id; } // 删除 头像 用
    public Avatar(String content) {
        this.content = content;
    }
}

